home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6495 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.lang.c
  2. Path: axcdf1.pd.infn.it!LORETI
  3. From: loreti@axcdf1.pd.infn.it (Maurizio Loreti)
  4. Subject: Re: Sorting a directory
  5. X-Nntp-Posting-Host: axcdf1.pd.infn.it
  6. Message-ID: <DnBprM.MLz@news.cern.ch>
  7. Sender: news@news.cern.ch (USENET News System)
  8. Reply-To: loreti@axcdf1.pd.infn.it
  9. Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
  10. References: <4gbbi9$c7s@news1.radix.net>
  11. Date: Sun, 25 Feb 1996 08:47:44 GMT
  12.  
  13. In article <4gbbi9$c7s@news1.radix.net>, jfw@radix.net (Jim Ward) writes:
  14. >I want to retrieve a sorted list of files in a directory.
  15. >I am using UNIX, on an HP, and I found by reading the
  16. >manpages I could use scandir() and alphasort() to perform the task
  17. >(these seem to be old BSD functions). When
  18. >I try to move the same code over to a SUN, the linker
  19. >(for the SunOS 5.4 cc) can't find these functions. 
  20. >Is there a library that I can link with that provides them?
  21. >Or have they been dropped as the UNIX world moves from
  22. >BSD to System V? Is there something in the C library that
  23. >I should be using instead?
  24. >
  25. >Sincerely,
  26. >
  27. >Jim Ward
  28. >
  29.  
  30. Since your question is about an implementation defined issue, the
  31. best that can be said is to read the man pages for your compiler. 
  32. Maybe a man -k directory could help...
  33. --
  34. Maurizio Loreti                       http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
  35. Un. of Padova, Dept. of Physics - Padova, Italy          loreti@padova.infn.it
  36.